// import React from 'react';
// import ReactDOM from 'react-dom';

import React from './lib/react';
import ReactDOM from './lib/react-dom';

class ClassComponent extends React.Component {
  render () {
    return <div className="demo" style={{color: 'red'}}>Hello {this.props.name}</div>
  }
}

const App = <ClassComponent name="timly" />

ReactDOM.render(
  App,
  document.getElementById('root')
);

// 注意如果要使用老的把 jsx 编译成 React.createElement(), 必须在启动项中设置 cross-env DISABLE_NEW_JSX_TRANSFORM=true
// 如： "start": "cross-env DISABLE_NEW_JSX_TRANSFORM=true react-scripts start",